package net.mihome.app.bean;

import java.util.Map;

/**
 * Created by zhao on 2015/2/28.
 */
public class ShopType {
    private Object id;
    private String name;
    private String avatar;
    private String createAt;
    private String updateAt;

    public static ShopType parse(Map map){
        if(map==null){
            return null;
        }
        ShopType shopType=new ShopType();
        shopType.setId(map.get("id"));
        shopType.setAvatar((String) map.get("avatar"));
        shopType.setCreateAt((String) map.get("create_at"));
        shopType.setUpdateAt((String) map.get("update_at"));
        shopType.setName((String) map.get("name"));
        return shopType;
    }
    public Object getId() {
        return id;
    }

    public void setId(Object id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getCreateAt() {
        return createAt;
    }

    public void setCreateAt(String createAt) {
        this.createAt = createAt;
    }

    public String getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(String updateAt) {
        this.updateAt = updateAt;
    }
}
